import Vue from 'vue'
import VueRouter from 'vue-router'
import Goods from './components/goods/Goods'
import Ratings from './components/ratings/Ratings'
import Seller from './components/seller/Seller'

Vue.use(VueRouter)

export default new VueRouter({
    mode: 'history',
    linkActiveClass: 'active',
    routes: [
        { path: '*', redirect: '/goods' },
        { path: '/goods', component: Goods },
        { path: '/ratings', component: Ratings },
        { path: '/seller', component: Seller }
    ]
})